package com.shruijin.wy.thread;

import com.shruijin.wy.thread.action.SimpleAction;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Qualifier;

import javax.annotation.Resource;
import java.util.Collection;
import java.util.Collections;

public class SimpleThread extends  Thread {

    Logger LOGGER = LoggerFactory.getLogger(this.getClass());

    @Resource
    @Qualifier(value = "action.simple")
    SimpleAction simpleAction;

    public void run(){
        LOGGER.info("{},is running!",this.getName());
        simpleAction.simpleaction(this.getName());
    }

    public static void main(String[] args) {

        
    }

}
